﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using The_Chronicles_of_Asku.Areas.Tomb_Floors._20_30._26_30.Resources;
using The_Chronicles_of_Asku.Characters;
using The_Chronicles_of_Asku.Characters.Mobs.Bosses.Floors_25_30_Leveling;
namespace The_Chronicles_of_Asku.Areas.Tomb_Floors._20_30._26_30
{
    class FloorThirty
    {
        Hero myHero = new Hero();
        KingDrake KingDrake = new KingDrake();
        KingDrakeBattle battle = new KingDrakeBattle();

        public void theFloor(Hero myHero, Mob mob)
        {
            Console.WriteLine(FloorThirtyText.Entrance);
            ClearScreen();

            battle.Fight(myHero, KingDrake);
            myHero.ResetStats(myHero);
            KingDrake.ResetStats(KingDrake);
            ClearScreen();

            if (myHero.isAlive == true)
            {
                Console.WriteLine(FloorThirtyText.Finished);
                ClearScreen();
                Console.WriteLine(FloorThirtyText.SamilConversation);
                ClearScreen();
                Console.WriteLine(FloorThirtyText.Credits);
            }

            else if (myHero.isAlive == false)
            {
                Console.WriteLine(FloorThirtyText.Dead);
                myHero.isAlive = true;
                ClearScreen();
            }
        }

        private void ClearScreen()
        {
            Console.ReadKey();
            Console.Clear();
        }
    }
}
